<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    $(function() {
       /*  $('#examRecordAddPid').combotree({
            url : '${path }/examRecord/tree',
            parentField : 'pid',
            lines : true,
            panelHeight : 'auto'
        }); */
        
        $('#examRecordAddForm').form({
            url : '${path }/examRecord/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_treeGrid这个对象，是因为examRecord.jsp页面预定义好了
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    var form = $('#examRecordAddForm');
                    parent.$.messager.alert('提示', eval(result.msg), 'warning');
                }
            }
        });
        
    });
</script>
<div style="padding: 3px;">
    <form id="examRecordAddForm" method="post">
       <table class="grid">
            <tr>
                <td>考生姓名</td>
                <td><input name="examineeName" type="text"  placeholder="考生姓名" class="easyui-validatebox" data-options="required:true" ></td>
                <td>考场编号</td>
                <td><input name="id" type="hidden" /><input name="examSiteCode" type="text" /></td>
                
            </tr>
            <tr>
            <td>考生编号</td>
                <td><input name="examineeNum" type="text" placeholder="考生编号" class="easyui-validatebox" data-options="required:true" ></td>
                <td>科目编号</td>
                <td><input name="courseCode" type="text"  placeholder="科目编号" class="easyui-validatebox" data-options="required:true" ></td>
              </tr>
            <tr>
                
                <td>子科目编号</td>
                <td><input name="courseSubcode"  class="easyui-numberspinner"  style="widtd: 140px; height: 29px;" required="required" data-options="editable:false"></td>
                <td>视频分数</td>
                <td><input name="videoScore" type="text"  placeholder="视频分数" class="easyui-validatebox" data-options="required:true" ></td>
            </tr>
            <tr>
            <td>文本分数</td>
               <td> <input name="fileScore" style="width: 148px;" /></td>
                <td>考试座位</td>
                <td><input name="examSiteSeat"   style="widtd: 140px;"></td>
            </tr>
             <tr>
            <td>视频</td>
               <td> <input name="video" style="width: 148px;" /></td>
                <td>文件</td>
                <td><input name="file"   style="widtd: 140px;"></td>
            </tr>
             <tr>
                <td>成绩是否有效</td>
                <td colspan="3"><input name="status" style="width: 148px;" /></td>
               
            </tr> 
        </table>
    </form>
</div>